(set #savepathvar "Saving GMDIR environment variable in ENVARC:")
(set #gmdirhelp "The GMDIR environment variable will tell\nGMPlay where its program directory is located.\nIf you still have the GM: assign installed\nyou may remove it now. It is no longer needed.\n")
(set #envarchelp "This step will copy the GMDIR environment\nvariable into your ENVARC: directory where\nit is safely stored on hard drive\nin order to survive resets.\n")
(set #endmessage "GMPlay has been successfully installed.\nNote that GMPlay is a CLI-based program.\nPlease read the documentation.\nThen try playing the example songs.\n")
(complete 0)
; Welcome the user
(welcome #welcomestring)
; Find the location of an existing GMPlay installation
(set #GMDir (getassign "GM"))
(if (exists "ENV:GMDIR" (noreq))
(
(set #GMDir (getenv "GMDIR"))
)
)
; remove any slash at the end of #GMDir (if present)